/*
 * @Author: jinye.zhang
 * @Version: 1.0.0
 * @Date: 2021-05-25 14:00:25
 * @LastEditors: jinye.zhang
 * @LastEditTime: 2021-05-26 10:59:10
 * @Description: 配置
 */

module.exports = {
  configureWebpack: () => {
    if (process.env.NODE_ENV == 'development') {
      return {
        optimization: {
            minimize: true,
        },
      }
    }
  },
  devServer: {
    disableHostCheck: true,
    proxy: {
      '/api': {
        target: 'https://baiwan-admin.baiwanchuanmei.cn/api', //这里后台的地址模拟的;应该填写你们真实的后台接口
        changOrigin: true, // 表示是否改变原域名
      }
    }
  }
}
